package com.example.main;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class Main03 {
    public static void main(String[] args) {
        Path path = Paths.get("C:\\Users\\lei.liu\\Desktop\\project\\前置\\开发指引\\ideal\\cny\\验收\\20220715",
                "接口开发包说明文件.doc");
        if (Files.exists(path)){
            System.out.println("存在: "+path);
        }else {
            System.out.println("不存在: "+path);
        }
        System.out.println(LocalDate.now().format(DateTimeFormatter.BASIC_ISO_DATE));


        User test = test(new User("ew", "dsd"));
    }

    private static <T> T test(T obj){
        System.out.println();
        return obj;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    private static class User{
        private String id;
        private String name;
    }
}
